package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class FocusOnTheTypeOfCompetitionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public FocusOnTheTypeOfCompetitionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFocnoIsNull() {
            addCriterion("focno is null");
            return (Criteria) this;
        }

        public Criteria andFocnoIsNotNull() {
            addCriterion("focno is not null");
            return (Criteria) this;
        }

        public Criteria andFocnoEqualTo(String value) {
            addCriterion("focno =", value, "focno");
            return (Criteria) this;
        }

        public Criteria andFocnoNotEqualTo(String value) {
            addCriterion("focno <>", value, "focno");
            return (Criteria) this;
        }

        public Criteria andFocnoGreaterThan(String value) {
            addCriterion("focno >", value, "focno");
            return (Criteria) this;
        }

        public Criteria andFocnoGreaterThanOrEqualTo(String value) {
            addCriterion("focno >=", value, "focno");
            return (Criteria) this;
        }

        public Criteria andFocnoLessThan(String value) {
            addCriterion("focno <", value, "focno");
            return (Criteria) this;
        }

        public Criteria andFocnoLessThanOrEqualTo(String value) {
            addCriterion("focno <=", value, "focno");
            return (Criteria) this;
        }

        public Criteria andFocnoLike(String value) {
            addCriterion("focno like", value, "focno");
            return (Criteria) this;
        }

        public Criteria andFocnoNotLike(String value) {
            addCriterion("focno not like", value, "focno");
            return (Criteria) this;
        }

        public Criteria andFocnoIn(List<String> values) {
            addCriterion("focno in", values, "focno");
            return (Criteria) this;
        }

        public Criteria andFocnoNotIn(List<String> values) {
            addCriterion("focno not in", values, "focno");
            return (Criteria) this;
        }

        public Criteria andFocnoBetween(String value1, String value2) {
            addCriterion("focno between", value1, value2, "focno");
            return (Criteria) this;
        }

        public Criteria andFocnoNotBetween(String value1, String value2) {
            addCriterion("focno not between", value1, value2, "focno");
            return (Criteria) this;
        }

        public Criteria andMtnoIsNull() {
            addCriterion("mtno is null");
            return (Criteria) this;
        }

        public Criteria andMtnoIsNotNull() {
            addCriterion("mtno is not null");
            return (Criteria) this;
        }

        public Criteria andMtnoEqualTo(String value) {
            addCriterion("mtno =", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotEqualTo(String value) {
            addCriterion("mtno <>", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoGreaterThan(String value) {
            addCriterion("mtno >", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoGreaterThanOrEqualTo(String value) {
            addCriterion("mtno >=", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLessThan(String value) {
            addCriterion("mtno <", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLessThanOrEqualTo(String value) {
            addCriterion("mtno <=", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLike(String value) {
            addCriterion("mtno like", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotLike(String value) {
            addCriterion("mtno not like", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoIn(List<String> values) {
            addCriterion("mtno in", values, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotIn(List<String> values) {
            addCriterion("mtno not in", values, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoBetween(String value1, String value2) {
            addCriterion("mtno between", value1, value2, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotBetween(String value1, String value2) {
            addCriterion("mtno not between", value1, value2, "mtno");
            return (Criteria) this;
        }

        public Criteria andUnoIsNull() {
            addCriterion("uno is null");
            return (Criteria) this;
        }

        public Criteria andUnoIsNotNull() {
            addCriterion("uno is not null");
            return (Criteria) this;
        }

        public Criteria andUnoEqualTo(String value) {
            addCriterion("uno =", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoNotEqualTo(String value) {
            addCriterion("uno <>", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoGreaterThan(String value) {
            addCriterion("uno >", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoGreaterThanOrEqualTo(String value) {
            addCriterion("uno >=", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoLessThan(String value) {
            addCriterion("uno <", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoLessThanOrEqualTo(String value) {
            addCriterion("uno <=", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoLike(String value) {
            addCriterion("uno like", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoNotLike(String value) {
            addCriterion("uno not like", value, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoIn(List<String> values) {
            addCriterion("uno in", values, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoNotIn(List<String> values) {
            addCriterion("uno not in", values, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoBetween(String value1, String value2) {
            addCriterion("uno between", value1, value2, "uno");
            return (Criteria) this;
        }

        public Criteria andUnoNotBetween(String value1, String value2) {
            addCriterion("uno not between", value1, value2, "uno");
            return (Criteria) this;
        }

        public Criteria andFocdescIsNull() {
            addCriterion("focdesc is null");
            return (Criteria) this;
        }

        public Criteria andFocdescIsNotNull() {
            addCriterion("focdesc is not null");
            return (Criteria) this;
        }

        public Criteria andFocdescEqualTo(String value) {
            addCriterion("focdesc =", value, "focdesc");
            return (Criteria) this;
        }

        public Criteria andFocdescNotEqualTo(String value) {
            addCriterion("focdesc <>", value, "focdesc");
            return (Criteria) this;
        }

        public Criteria andFocdescGreaterThan(String value) {
            addCriterion("focdesc >", value, "focdesc");
            return (Criteria) this;
        }

        public Criteria andFocdescGreaterThanOrEqualTo(String value) {
            addCriterion("focdesc >=", value, "focdesc");
            return (Criteria) this;
        }

        public Criteria andFocdescLessThan(String value) {
            addCriterion("focdesc <", value, "focdesc");
            return (Criteria) this;
        }

        public Criteria andFocdescLessThanOrEqualTo(String value) {
            addCriterion("focdesc <=", value, "focdesc");
            return (Criteria) this;
        }

        public Criteria andFocdescLike(String value) {
            addCriterion("focdesc like", value, "focdesc");
            return (Criteria) this;
        }

        public Criteria andFocdescNotLike(String value) {
            addCriterion("focdesc not like", value, "focdesc");
            return (Criteria) this;
        }

        public Criteria andFocdescIn(List<String> values) {
            addCriterion("focdesc in", values, "focdesc");
            return (Criteria) this;
        }

        public Criteria andFocdescNotIn(List<String> values) {
            addCriterion("focdesc not in", values, "focdesc");
            return (Criteria) this;
        }

        public Criteria andFocdescBetween(String value1, String value2) {
            addCriterion("focdesc between", value1, value2, "focdesc");
            return (Criteria) this;
        }

        public Criteria andFocdescNotBetween(String value1, String value2) {
            addCriterion("focdesc not between", value1, value2, "focdesc");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}